package com.week.tiny_video.dao;

import com.week.tiny_video.pojo.Administrator;
import org.springframework.data.jpa.repository.JpaRepository;

//User : pojo
// Integer: 主键类型
public interface AdministratorDao extends JpaRepository<Administrator,Integer> {
    Administrator findByUsername(String username);
    Administrator getByUsernameAndPassword(String username, String password);
}
